package com.ayoka.mvp;

import com.ayoka.base.BasePresenter;
import com.ayoka.base.IBaseView;
import com.ayoka.bean.CourseAssignmentBean;

import java.io.Serializable;

/**
 * Created by gabriel on 2017/3/5.
 */

public interface CourseAssignmentMVP {

    interface CourseAssignmentModel {

        class RequestAnswerBean implements Serializable{
            public int QuestionID;
            public int CorrectAnswer;
            public int Answer;

            public RequestAnswerBean(int questionID, int correctAnswer, int answer) {
                QuestionID = questionID;
                CorrectAnswer = correctAnswer;
                Answer = answer;
            }
        }

        class RequestRelationScoreBean implements Serializable{
            public String ItemName;
            public int Score;

            public RequestRelationScoreBean(String itemName, int score) {
                ItemName = itemName;
                Score = score;
            }
        }

    }

    interface ICourseAssignmentView extends IBaseView {

        void configCourseAssignmentDetailData(CourseAssignmentBean result);
    }

    class CourseAssignmentPresenter extends BasePresenter<ICourseAssignmentView> {

        public void getCourseAssignmentDetailData(int courseAssignmentId, int taskId) {

        }

        public void submitCourseAssignment(int assignmentType, Object requestParam) {

        }
    }

}
